package com.jiaai.cloud.live.mapper;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.jiaai.cloud.live.entity.TAnchor;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.jiaai.cloud.live.entity.TAnchorSearch;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * <p>
 * 主播基础信息表 Mapper 接口
 * </p>
 *
 * @author 佳爱网络科技
 * @version V1.0
 * @title TAnchorMapper.java
 * @since 2017/8/1
 */
public interface TAnchorMapper extends BaseMapper<TAnchor> {
    /**
     * 查找主播列表
     * @param
     * @return
     */
    List<TAnchor> findAnchorFully(Page page, TAnchorSearch search);

    List<TAnchor> findByAll(Page page, @Param("ew") Wrapper wrapper);
    /**
     * 删除主播列表
     * @param
     * @return
     */
    @Delete("DELETE FROM t_anchor Where anchorId =#{anchorId} ")
    void delete(@Param("anchorId") String anchorId);

    List<TAnchor> findZhiboFully();
    /**
     * 查直播排行
     * @param
     * @return
     */
    List<TAnchor> anchorPaihang(Page page, @Param("ew") Wrapper wrapper);

}